<template>
	<view class="content">
		<view class="header">
			<p class="title">收益</p>
			<view class="FIL">
				<view class="FIL_left">
					<p class="text_1">0.0000</p>
					<p>USDT余额</p>
				</view>
				<view class="FIL_right">
					<p class="text_2">0</p>
					<p>节点分红</p>
				</view>
			</view>
		</view>
		<view class="list">
			<view class="list1">
				<view class="listing" @click="shows">
					<image src="../../static/icon_jdhy@2x.png"></image>
					<view class="text_3">节点会员</view>
					<text>0</text>
				</view>
				<view class="listing" @click="shows">
					<image src="../../static/icon_ztrs@2x.png"></image>
					<view class="text_3">分享人数</view>
					<text>0</text>
				</view>
				<view class="listing">
					<image src="../../static/icon_jrztrs@2x.png"></image>
					<view class="text_3">今日分享人数</view>
					<text>0</text>
				</view>
			</view>
			<view class="list2">
				<view class="listing">
					<image src="../../static/icon_tdyj@2x.png"></image>
					<text class="text_3">团队业绩</text>
					<text>0</text>
				</view>
				<view class="listing">
					<image src="../../static/icon_ztyj@2x.png"></image>
					<text class="text_3">分享业绩</text>
					<text>0</text>
				</view>
				<view class="listing">
					<image src="../../static/icon_ljsy@2x.png"></image>
					<text class="text_3">累计收益</text>
					<text>0</text>
				</view>
				<view class="listing">
					<image src="../../static/icon_ljsy@2x(1).png"></image>
					<text class="text_3">累计收益</text>
					<text>0</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '收益'
			}
		},
		onLoad() {

		},
		onShow() {
			this.initData()
		},
		methods: {
			// 获取Token
			initData(){
				if(this.$db.get('userToken')){
					console.log(this.$db.get('userToken'))
				}else{
					this.$db.userToken()
					consolr.log(123)
				}
			},
			shows(){
				uni.showToast({
				    title: '暂无数据',
					icon:"none"
				});
			}
		}
	}
</script>

<style lang="less">
	.content {
		width: 100%;
		background: #f3f3f3;

		.header {
			height: 414rpx;
			background: #764CFA;
			opacity: 1;
			padding: 0 20rpx;

			.title {
				line-height: 200rpx;
				color: #FFFFFC;
				font-size: 36rpx;
				background: #764CFA;
				font-family: PingFang SC;
				font-weight: 400;
				text-align: center;
			}

			.FIL {
				height: 176rpx;
				background: #FFFFFC;
				opacity: 1;
				border-radius: 8px;
				display: flex;
				justify-content: center;
				padding: 44rpx 24rpx;
				margin-top: 80rpx;
				.FIL_left {
					width: 50%;
					// height: 188rpx;
					background: #FFFFFC;
					font-size: 24rpx;
					color: #000000;
					p {
						text-align: center;
						background: #FFFFFC;
					}

					.text_1 {
						margin-bottom: 10rpx;
						color: #764CFA;
						font-size: 32rpx;
					}
				}

				.FIL_right {
					background: #FFFFFC;
					width: 50%;
					// height: 188rpx;
					font-size: 24rpx;
					color: #000000;
					// margin-left: 30rpx;
					p {
						text-align: center;
						background: #FFFFFC;
					}

					.text_2 {
						margin-bottom: 10rpx;
						color: #764CFA;
						font-size: 32rpx;
					}
				}
			}
		}

		.list {
			padding: 0 20rpx;
			margin-top: 100rpx;

			.list1 {
				height: 336rpx;
				background: #FFFFFC;
				opacity: 1;
				border-radius: 8px;
				display: flex;
				flex-direction: column;
				padding: 24rpx 24rpx;

				.listing {
					display: flex;
					align-items:center;
					justify-content:space-between;
					height: 33%;
					border-bottom: 1px solid #F2F1F5;

					image {
						width: 48rpx;
						height: 48rpx;
					}

					.text_3 {
						font-size: 32rpx;
						color: #000000;
						margin-right: auto;
						margin-left: 20rpx;
					}
				}
			}
			.list2 {
				height: 488rpx;
				background: #FFFFFC;
				opacity: 1;
				border-radius: 8px;
				display: flex;
				flex-direction: column;
				padding: 24rpx 24rpx;
				margin-top: 40rpx;
				.listing {
					display: flex;
					align-items:center;
					justify-content:space-between;
					height: 33%;
					border-bottom: 1px solid #F2F1F5;
			
					image {
						width: 48rpx;
						height: 48rpx;
					}
			
					.text_3 {
						font-size: 32rpx;
						color: #000000;
						margin-right: auto;
						margin-left: 20rpx;
					}
				}
			}
		}
	}
</style>
